<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>天下第一帅</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        $.ajax({
            url:'ajax.php',
            data:{a:12,b:88},
            dataType:'json',
            type:'get',
            success(json){
                console.log(json)
                alert(json)
            }
        })
    </script>
</head>
<body>

</body>
</html>